package cn.edu.stu.syllabus.repository.booklocate.local;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by daidaijie on 2017/3/28.
 */

public class BookLocateEntry implements Parcelable {

    private String book;

    private String state;

    private String type;

    public String getBook() {
        return book;
    }

    public void setBook(String book) {
        this.book = book;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.book);
        dest.writeString(this.state);
        dest.writeString(this.type);
    }

    public BookLocateEntry() {
    }

    protected BookLocateEntry(Parcel in) {
        this.book = in.readString();
        this.state = in.readString();
        this.type = in.readString();
    }

    public static final Parcelable.Creator<BookLocateEntry> CREATOR = new Parcelable.Creator<BookLocateEntry>() {
        @Override
        public BookLocateEntry createFromParcel(Parcel source) {
            return new BookLocateEntry(source);
        }

        @Override
        public BookLocateEntry[] newArray(int size) {
            return new BookLocateEntry[size];
        }
    };
}
